Streaming Algorithm for Determining a Topological Ordering of a Digraph

نویسندگان

  • Abhabongse Janthong
  • Paul Valiant
چکیده

Finding a topological ordering for a directed graph is one of the fundamental problems in computer science. Several textbook-standard algorithms using linear memory have been discovered and utilized to solve several other problems for many decades, especially in resolving dependencies and solving other graph connectivity problems. However, these algorithms are becoming less practical nowadays as the size of the data we are working with is getting much larger because the data cannot t into memory, prohibiting these algorithms from randomly accessing the input graph data. For this thesis, our goal is to solve the topological ordering problem of a directed graph with a size that is substantially much larger than the size of available memory. Speci cally, we study the problem in the context of the streaming settings in which the set of edges of the graph are provided through a data stream instead of being stored entirely on a random access memory. A recent lower bound result – rising from the analysis of communication complexity – shows that there is no one-pass streaming algorithm for the topological ordering problem that could achieve memory usage that is sublinear in the number of edges of a graph. Our work addresses on the remaining question of whether there is a multi-pass algorithm using sublinear working memory to solve this problem. Our rst result discusses a conjecture based the communication complexity. We study a speci c game of communication between Alice and Bob in which both parties attempt to solve the s–t reachability problem of a 3-layer graph using small memory. The solution to this problem helps us construct a streaming algorithm for topological sorting. Unfortunately, using the notion of additive combinatorics, we are able to construct a counterexample that enforces a large lower bound on the required memory in order to solve the conjectured problem. For the other result, we provide a surprisingly simple steaming algorithm for determining a topological ordering of an n-vertex directed graph; by storing up to k arbitrary incoming edges for each vertex in each pass of the stream, this algorithm achieves Θ(nk ) working memory and uses dn/ke passes on the input, where k is an integer parameter. This result is a nice tradeo between the number of passes of the streaming and the amount of memory usage.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The topological ordering of covering nodes

The topological ordering algorithm sorts nodes of a directed graph such that the order of the tail of each arc is lower than the order of its head. In this paper, we introduce the notion of covering between nodes of a directed graph. Then, we apply the topological orderingalgorithm on graphs containing the covering nodes. We show that there exists a cut set withforward arcs in these...

متن کامل

THE RELATION BETWEEN TOPOLOGICAL ORDERING AND ADJACENCY MATRIX IN DIGRAPHS

In this paper the properties of node-node adjacency matrix in acyclic digraphs are considered. It is shown that topological ordering and node-node adjacency matrix are closely related. In fact, first the one to one correspondence between upper triangularity of node-node adjacency matrix and existence of directed cycles in digraphs is proved and then with this correspondence other properties of ...

متن کامل

An Integrated Model of Project Scheduling and Material Ordering: A Hybrid Simulated Annealing and Genetic Algorithm

This study aims to deal with a more realistic combined problem of project scheduling and material ordering. The goal is to minimize the total material holding and ordering costs by determining the starting time of activities along with material ordering schedules subject to some constraints. The problem is first mathematically modelled. Then a hybrid simulated annealing and genetic algorithm is...

متن کامل

Subgraphs Satisfying MSO Properties on z-Topologically Orderable Digraphs

We introduce the notion of z-topological orderings for digraphs. We prove that given a digraph G on n vertices admitting a z-topological ordering, together with such an ordering, one may count the number of subgraphs of G that at the same time satisfy a monadic second order formula φ and are the union of k directed paths, in time f(φ, k, z) · n. Our result implies the polynomial time solvabilit...

متن کامل

Optimal Acyclic Hamiltonian Path Completion for Outerplanar Triangulated st-Digraphs (with Application to Upward Topological Book Embeddings)

Given an embedded planar acyclic digraph G, we define the problem of"acyclic hamiltonian path completion with crossing minimization (Acyclic-HPCCM)"to be the problem of determining an hamiltonian path completion set of edges such that, when these edges are embedded on G, they create the smallest possible number of edge crossings and turn G to a hamiltonian digraph. Our results include: --We pro...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014